import { RouteRecordRaw } from "vue-router";
import beforeEnter from './../utils/before-enter';

import HomeRoute from './home-route';
import TeachingRoute from './teaching-route';
import DailyRoute from './daily-route';
import EvaluationRoute from './evaluation-route';
import BaseRoute from './base-route';

const Routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/login',
    component: () => import('@/layout/base.vue'),
    beforeEnter,
    children: [
      HomeRoute,
      TeachingRoute,
      DailyRoute,
      EvaluationRoute
    ]
  },
  ...BaseRoute
]





export default Routes;